package com.backend.system.beans.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 用户登录响应
 *
 * @author backend-manage
 */
@Data
public class UserLoginVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -5425934627980935321L;

    /**
     * 登录用户的token
     */
    @ApiModelProperty(value = "登录用户的token", required = true)
    private String token;

    /**
     * 登录账号
     */
    @ApiModelProperty(value = "登录账号", required = true)
    private String loginAccount;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名", required = true)
    private String username;

    /**
     * 用户角色信息
     */
    @ApiModelProperty(value = "用户角色信息", required = true)
    private List<UserRoleVO> roles;
}
